<template>
<div>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="page"
      :page-sizes="[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
  </div>
</template>

<script>
export default {
  props:['page','pageSize','total'],
methods: {
      handleSizeChange(val) {
        this.$emit('changePageSize',val)
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        this.$emit('changePage',val)
        console.log(`当前页: ${val}`);
      }
},
data() {
     return{}
    }
}
</script>

<style>

</style>